package com.gdpu.dto;

import com.gdpu.model.ImsPurchaseOrder;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @Author:weiming
 * @Date:2021/5/28
 * 创建 查询
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ImsPurchaseOrderDto  {
    private Integer id;

    @ApiModelProperty(value = "商品id")
    @Min(value = 1)
    private Integer goodId;

    @ApiModelProperty(value = "商品单件进价")
    private BigDecimal goodInPrice;

    @ApiModelProperty(value = "数量")
    @Min(value = 1,message = "至少1件")
    private Integer quantity;

    private String note;
}
